package com.dragon.service;

import java.io.Serializable;
import java.util.List;

public interface IService {

	public abstract Object get(Serializable id, Class entityClass);

	public abstract Object load(Serializable id, Class entityClass);

	public abstract List get(Serializable[] ids, Class entityClass);

	public abstract Object get(String propertyName, Object value, Class entityClass);

	public abstract List getList(String propertyName, Object value, Class entityClass);

	public abstract List getAll(Class entityClass);

	public abstract boolean isExist(String propertyName, Object value, Class entityClass);

	public abstract Serializable save(Serializable object);

	public abstract void update(Serializable object);

	public abstract void delete(Serializable object);

	public abstract void delete(Serializable id, Class entityClass);

	public abstract void delete(Serializable[] ids, Class entityClass);

	public abstract void flush();

	public abstract void clear();

	public abstract void evict(Object object);

}
